<?php

namespace App\Params\Backend;

use App\Params\Param;
/**
 * 发货单保存参数
 *
 * @author: WangBin
 * @date: 2021/7/26
 * @mail: <849850352@qq.com>
 */
class DeliveryUpdateParam extends Param
{
    public $delivery_id = 0;
    public $store_id = 0;
    public $order_id;
    public $express_bn;
    public $company_id;
    public $remark = '';

    public function rules()
    {
        return [
            'delivery_id' => 'nullable|integer',
            'store_id' => 'nullable|integer',
            'order_id' => 'required|integer',
            'express_bn' => 'required|string',
            'company_id' => 'required|integer',
            'remark' => 'nullable|string',
        ];
    }

    /**
     * @return int
     */
    public function getDeliveryId(): int
    {
        return $this->delivery_id;
    }

    /**
     * @param int $delivery_id
     */
    public function setDeliveryId(int $delivery_id): void
    {
        $this->delivery_id = $delivery_id;
    }

    /**
     * @return int
     */
    public function getStoreId(): int
    {
        return $this->store_id;
    }

    /**
     * @param int $store_id
     */
    public function setStoreId(int $store_id): void
    {
        $this->store_id = $store_id;
    }

    /**
     * @return mixed
     */
    public function getOrderId()
    {
        return $this->order_id;
    }

    /**
     * @param mixed $order_id
     */
    public function setOrderId($order_id): void
    {
        $this->order_id = $order_id;
    }

    /**
     * @return mixed
     */
    public function getExpressBn()
    {
        return $this->express_bn;
    }

    /**
     * @param mixed $express_bn
     */
    public function setExpressBn($express_bn): void
    {
        $this->express_bn = $express_bn;
    }

    /**
     * @return mixed
     */
    public function getCompanyId()
    {
        return $this->company_id;
    }

    /**
     * @param mixed $company_id
     */
    public function setCompanyId($company_id): void
    {
        $this->company_id = $company_id;
    }

    /**
     * @return string
     */
    public function getRemark(): string
    {
        return $this->remark;
    }

    /**
     * @param string $remark
     */
    public function setRemark(string $remark): void
    {
        $this->remark = $remark;
    }
}
